<ul class="usershoplistnav">
    <li ng-click="clicknav('new')" class="fl usershoplistnavactive">最新</li>
    <li class="fl" ng-click="clicknav('hot')">人气</li>
    <li class="fl" ng-click="clicknav('ing')">开团中</li>
</ul>

<ul class="index-shop" ng-hide="isnoting">
    <li ng-repeat="shop in data.tuan_list track by $index" ng-click="isnextpage(shop.tuan_id)" repeat-finish>
        <a href="#/details/{{shop.tuan_id}} "><div class="index-shop-img">
            <img src="{{shop.image}}" alt=""/>
            <div class="index-shop-purchase">
                <p ng-bind="shop.config.discount+'折'"></p>
                <p ng-bind="shop.config.number+'人团'"></p>
            </div>
        </div>

        <div class="index-shop-info">
            <div class="index-shop-info-left fl">
                <div class="index-shop-info-left-left fl">
                    <h2>{{shop.name}}</h2>
                    <div class="fl">{{shop.config.number}}人团：{{shop.config.discount | currency : '￥'}}</div>
                    <div class="index-shop-info-left-right fr index-shop-info-right-text-go index-shop-info-right-text-info-go-in">市场价：{{ shop.price | currency : '￥' }}</div>
                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="index-shop-info-right fr"><div class="index-shop-info-right-text usergroupbuy-index-btn">去开团</div></div>
            <div class="clear"></div>
        </div></a>
    </li>
</ul>


<ul class="user-grouping" ng-show="isnoting">
    <li ng-repeat="x in data.tuan_list">
        <div class="fl user-team-all">
            <img src="{{x.image}}" class="fl" alt="">

            <div class="fl user-team-content">
                <p>
                    <span class="fl user-team-buy-name">{{x.name}}</span>
                    <span class="detail-press-type-top fl" style="background: #45A8FF" ng-if="x.type == 0">人缘</span>
                    <span style="background: #FE6262" class="detail-press-type-top fl" ng-if="x.type == 1">最优</span>
                    <div class="clear"></div>
                </p>
                <p class="user-team-name">团长：{{x.team_nickname}}</p>
                <p>
                    <div class="fl user-pross">
                        <div class="user-prossbj"></div>
                        <div class="user-prosscon" style="width: {{ 100 - ((x.tuan_number - x.order_count ) / x.tuan_number * 100)}}%;"></div>
                    </div>
                    <div class="fl">{{x.order_count}}/{{x.tuan_number}}</div>
                </p>
            </div>
            <div class="clear"></div>
        </div>
        <div class="fr user-right-con">
            <p style="font-weight: bold">{{x.tuan_price | currency : "￥"}}</p>
            <p>
                <a href="#/detailinfo/{{x.tuan_id}}/{{x.type}}/{{x.item_id}}/{{x.team_id}}" class="user-gonow">立即参团</a>
            </p>
        </div>
        <div class="clear"></div>
    </li>
</ul>

<div class="indexlistmore" ng-show="isshow">正在加载中...</div>

<loading></loading>
<dialog></dialog>
